﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jim.K3Cloud;

[Sdk("Kingdee.BOS.WebApi.ServicesStub.OrganizationService.GetOrganization", "查询组织部门WebApi接口")]
public class K3CloudGetOrganizationRequest : ISdkRequest<K3CloudGetOrganizationResponse>
{
    public string dbId { get; set; }
    public string dbNumber { get; set; }
    public int localeId { get; set; } = 2052;

    public void Validate()
    {
    }
}


public class K3CloudGetOrganizationResponse : SdkResponse<List<K3CloudGetOrganizationResponse>> { }


public class K3CloudOrganizationDepartmen
{
    public string FID { get; set; }

    public int FOrgID { get; set; }

    public string FNumber { get; set; }

    public string FName { get; set; }

    public string FDescription { get; set; }

    public string FForbidStatus { get; set; }

    public string FDocumentStatus { get; set; }

    public int FParentID { get; set; }

    public DateTime FCreateDate { get; set; }

    public DateTime FModifyDate { get; set; }

    public string FIsAdministrative { get; set; }

    public string Fisfreeze { get; set; }

    public int FOrgFormID { get; set; }

    /// <summary>是否核算组织</summary>
    public string FIsAccountOrg { get; set; }

    /// <summary>核算类型</summary>
    public string FAcctOrgType { get; set; }

    /// <summary>是否业务组织</summary>
    public string FIsBusinessOrg { get; set; }

    public string FOrgFunctions { get; set; }

    public int FCreateOrgId { get; set; }

    public int FUseOrgId { get; set; }

    public int FDataType { get; set; }

    public int FDataItemType { get; set; }

    public bool FIsDeepFirestDepartment { get; set; }

    public int FDeepth { get; set; }

    public List<K3CloudOrganizationDepartmen> Children { get; set; }
}